﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 需求条件
/// </summary>
public class RequireCondition {

    /// <summary>
    /// 需求种类
    /// </summary>
    public Constant.RequireCategory Prop;
    /// <summary>
    /// 比较类型
    /// </summary>
    public Constant.CompareCategory Compare;
    /// <summary>
    /// 数值
    /// </summary>
    public int Val;

    public RequireCondition() {

    }

    public RequireCondition(Constant.RequireCategory prop, int val) {
        this.Prop = prop;
        this.Val = val;
        this.Compare = Constant.CompareCategory.Gte; // 默认大于等于
    }

    public RequireCondition(Constant.RequireCategory prop, Constant.CompareCategory compare, int val)
        : this(prop, val) {
        this.Compare = compare;
    }
}
